package springboot.houbank.com.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import springboot.houbank.com.domain.Person;
import springboot.houbank.com.mapper.PersonMapper;
import springboot.houbank.com.service.PersonService;

import java.util.List;

/**
 * Created by zhaoqiguo on 2016/9/12.
 */
@Service
public class PersonServiceImpl implements PersonService {
    @Autowired
    private PersonMapper personMapper;
    @Override
    public int insertPerson(Person person) {
       int num = personMapper.insertPerson(person);
        return num;
    }

    @Override
    public List<Person> queryAll() {
        return personMapper.queryAll();
    }

/*    @Override
    public int insertTest1(String id) {
        return personMapper.insertTest1(id);
    }

    @Override
    public int insertTest2(Integer id) {
        return personMapper.insertTest2(id);
    }*/
}
